function AdminCallRestAction() {}

	AdminCallRestAction.callRestAxtion = function(url, params, callback) {
		var xhr = new XMLHttpRequest();
		xhr.open("POST", url, true);
		xhr.setRequestHeader("Content-type",
				"application/x-www-form-urlencoded");
		xhr.send(params);
		xhr.onload = function(e) {
			if (this.status == 200) {
				if(callback && typeof(callback) == "function" ){
					callback();
				}
				
			}
		};
	};
	AdminCallRestAction.editCategory = function(categoryId, newCategoryName, callback) {
		var url = "/rest/process/edit_category";
		var params = "category_id=" + categoryId + "&new_category_name="
				+ newCategoryName;
		this.callRestAxtion(url, params, callback);

	};

